package models

import (
	"gorm.io/gorm"
)

type UploadTask struct {
	ID        int    `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT;comment:主键id" json:"id"`
	UserId    int    `gorm:"column:user_id;type:int(11);NOT NULL" json:"user_id"`
	FileName  string `gorm:"column:file_name;type:varchar(255);NOT NULL" json:"file_name"`
	ExpiredAt int64  `gorm:"column:expired_at;type:bigint;comment:过期时间" json:"expired_at"`
	gorm.Model
}

func init() {
	//if err := database.Client.AutoMigrate(&UploadTask{}); err != nil {
	//	// TODO: skip
	//}
}
